<div id="top">
	
	<div id="top-banner">
		<?= file_get_contents("http://adserver.phpgenerator.co.uk/Serve/section/id/1") ?>
	</div>

	<div id="top_strip">
		
		<ul class="left">
			<li><img height="37" src="./images1/x1a.gif" alt="aprohirdetesi oldal" /></li>
			<li><a href="index.php"><img width="60" height="37" src="./images1/kezdolap.gif" alt="aprohirdetesi oldal" /></a></li>
			<li><img height="37" src="./images1/x1b.gif" alt="aprohirdetesi oldal" /></li>
			<li><a href="regisztracio.php"><img width="80" height="37" src="./images1/regisztracio.gif" alt="aprohirdetesi oldal" /></a></li>
			<li><img height="37" src="./images1/x1c.gif" alt="aprohirdetesi oldal" /></li>
		</ul>
		
		<ul class="right">
			<li><img height="37" src="./images1/x1a.gif" alt="aprohirdetesi oldal" /></li>
			<li><a href="index.php"><img width="60" height="37" src="./images1/kezdolap.gif" alt="aprohirdetesi oldal" /></a></li>
			<li><img height="37" src="./images1/x1b.gif" alt="aprohirdetesi oldal" /></li>
			<li><a href="regisztracio.php"><img width="80" height="37" src="./images1/regisztracio.gif" alt="aprohirdetesi oldal" /></a></li>
			<li><img height="37" src="./images1/x1c.gif" alt="aprohirdetesi oldal" /></li>
		</ul>
	
	</div>	
		
	<form name="top_qsearch" id="top_qsearch" method="get" action="hirdetesek.php" enctype='application/x-www-form-urlencoded' accept-charset="utf-8">

		<div class="left">
			
			<p>Ugrás fõrovatra:</p>
			
			<select name="rovat" onchange="javascript:this.form.submit();">
				<?php
					if (count($rovatok) < 1) print "<option value='0'>Create a Rovat first!</option>";
					else {
						print "<option value='0'>Válasszon rovatot</option>";
						print "<option value='mindegy' " . (isset($g_rovat) && $g_rovat == 'mindegy' ? "selected='selected'" : '') . ">Mindegy</option>";
						foreach ($rovatok as $rovat) {
							print "<option value='" . $rovat['slug'] . "' " . (isset($g_rovat) && $g_rovat == $rovat['slug'] ? "selected='selected'" : '') . ">" . $rovat['nev'] . "</option>";
						}
					}
				?> 
			</select>
		
		</div>
						
		<div class="right">
			
			<p>Szöveg gyorskeresés:</p>
			<input type="text" value="<?php print isset($g_szoveg) ? $g_szoveg : ''; ?>" name="szoveg" />
			
			<input type="hidden" value="1" name="szovegben" />
			<input type="hidden" value="1" name="targyban" />
			<input type="hidden" value="1" name="nevben" />
			
			<input type="submit" name="kereses" value="Keresés" />
							
		</div>
	
	</form>
			
</div>

<br />
